﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mfCustBought.aspx.cs"
    Inherits="msBsc.WebUi.mfCustBought" %>

<!DOCTYPE HTML>
<html>
<head>
    <title>订单管理</title>
    <%=getMeta()%>
    <%=getBodyBeforeJs()%>
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/mGlobal.css" charset="gbk" /> 
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jmPage.js,themes/Style1/jsQt.js,jqPlugin/layer/layer.min.js,jqPlugin/js/laytpl.js"
        type="text/javascript"></script> 
    <script type="text/javascript">
        $(window).load(function () {
        }); 
    </script>
    <!--head fix rgn-->
    <style type="text/css">
        .cust-order
        {
            padding: 3px;
            line-height: 22px;
            font-size: 14px;
            border-radius: 3px;
            -webkit-border-radius: 3px;
            -ms-border-radius: 3px;
            box-shadow: 1 1px 1px #dcdcdc;
        }
        .order-title
        {
            background-color: #f7f7f7;
            padding: 3px;
            line-height: 22px;
        }
        .order-info
        {
            position: relative;
        } 
        .order-info img
        {
            position: absolute;
            left: 0px;
            width: 120px;
        }
        .order-info .order-desc
        {
            position: relative;
            padding-left: 125px;
            min-height: 125px;
        }
    </style>
    <base target="_self" />
</head>
<body> 
<input id="datacurrpage" type="hidden" value="1" />
    <div class="viewport">
        <%=omQtHtmlGet.GetHeaderTopHtml(true, false)%> 
        <div class="clear">
        </div>

        <!--地址开始-->
         
        <div id="divOrderList"> 
        </div> 
        <div class="clear"></div> 
    <div  class="floor" style=" padding-bottom:1px;" id="divpaging"></div>
    </div>
    
    <textarea id="order_list_temp" style="display: none;">  
     {{#for(var i=0,len=d.rows.length;i < len;i++){}}
    <div class="floor cust-order" order-id="{{ d.rows[i].ORDER_FORM_ID }}">
    <div class="order-title" style=""><p><span style=" font-weight:bold;">店铺：</span>{{ d.rows[i].COMM_TENANT_NME }}</p></div>
        <div class="order-info"><img alt="" src="{{ d.rows[i].IMG_URL }} 120x120img.jpg"><div class="order-desc">
        <p><a href="/mb_OrderDetail.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" target="_self" >{{ d.rows[i].ORDER_FORM_NME }}</a></p>
        <p style="color:#888;"> ￥{{ d.rows[i].PAYABLE_AMT }} (运费:￥{{ d.rows[i].LOGISTICS_AMT }})</p> 
        <p style="color:#c44;"> {{ d.rows[i].TRADE_STATUS_TXT }} 
        
        {{# if(d.rows[i].TRADE_STATUS_TXT=='交易关闭'||d.rows[i].TRADE_STATUS_TXT=='交易成功'){ }} 
        <a class="abtn" href="javascript:void(0);" target="_self" style="padding:0px 6px 0px 6px; margin-left:20px; background:#ddd;color:#000;" onclick="doaction('dodeleteorder','{{ d.rows[i].ORDER_FORM_ID }}');" >删除</a>  
        {{#}}}
        
        </p> 
        </div>
        <div class="clear"></div>
        </div>  
        <div style=" text-align:center; padding:5px;">
        {{# if(d.rows[i].TRADE_STATUS_TXT=='等待买家付款'){ }} 
        <a class="abtn" href="/mb_PayCashier.htm?ID={{ d.rows[i].ORDER_FORM_NO }}" style="color:#fff;" target="_self">立即付款</a> 
        <a class="abtn" href="javascript:void(0);" style="color:#fff;" target="_self" onclick="doaction('docancelorder','{{ d.rows[i].ORDER_FORM_ID }}');" >取消订单</a>  
        {{#}}}
        {{# if(d.rows[i].TRADE_STATUS_TXT=='买家已付款'){ }} 
        <a class="abtn" href="javascript:void(0);" style="color:#fff;" target="_self" onclick="doaction('toreturncharge','{{ d.rows[i].ORDER_FORM_ID }}');" >申请退款</a>
        {{#}}}
        {{# if(d.rows[i].TRADE_STATUS_TXT=='卖家已发货'){ }} 
        <a class="abtn" href="/c_ConfirmReceipt.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" style="color:#fff;" target="_self">确认收货</a>
        {{#}}}
        {{# if(d.rows[i].TRADE_STATUS_TXT=='卖家已发货'||d.rows[i].TRADE_STATUS_TXT=='交易成功'){ }} 
        <a class="abtn" href="/mp_ErrInfo.htm" style="color:#fff;" target="_self">订单跟踪</a>
        {{#}}}
        {{# if(d.rows[i].BUYER_RATE_SID=='0'){ }} 
        <a class="abtn" href="/c_CustOrderRate.htm?ID={{ d.rows[i].ORDER_FORM_ID }}" style="color:#fff;" target="_self">评价</a> 
        {{#}}}
        </div>
    </div>
    {{#}}} 
    </textarea>
    <script src="/themes/mStyle1/morderls.js" type="text/javascript"></script> 
    <script type="text/javascript">
    </script>
</body>
<%=getBodyAfterJs() %>
</html>
